package fun.xinnix.design.chain;

public class ChainMain {
    public static void main(String[] args) {
        ThirdChainHandler third = new ThirdChainHandler();

        SecondChainHandler second = new SecondChainHandler();
        second.setNext(third);

        FirstChainHandler first = new FirstChainHandler();
        first.setNext(second);

        first.handler();
    }

}
